<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/11/6 0006
 * Time: 14:22
 */
?>

<?php $form =\yii\widgets\ActiveForm::begin(['options'=>['enctype'=>'multipart/form-data']])?>
<?=$form->field($model,'file')->fileInput()?>
<button>Submit</button>
<?php \yii\widgets\ActiveForm::end()?>

